package com.ibm.cloud.envcheck.bean;

import java.util.ArrayList;
import java.util.List;

public class ConfigBean {
	
	//the path which user want to store the checking result
	private String resultStorePath;
	
	//the host which user want to check(both ip and fqdn are ok)
	private String host;
	
	//the target host's login username.
	private String osAdmin;
	
	//the target host's login password
	private String password;
	
	//the target host's ssh port,default value is 22
	private int port = 22;
	
	private List<CheckItem>items = new ArrayList<CheckItem>();

	public String getResultStorePath() {
		return resultStorePath;
	}

	public void setResultStorePath(String resultStorePath) {
		this.resultStorePath = resultStorePath;
	}

	public String getHost() {
		return host;
	}

	public void setHost(String host) {
		this.host = host;
	}

	public String getOsAdmin() {
		return osAdmin;
	}

	public void setOsAdmin(String osAdmin) {
		this.osAdmin = osAdmin;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		if(port<=0){
			//do nothing
			return;
		}
		this.port = port;
	}

	public List<CheckItem> getItems() {
		return items;
	}

	public void setItems(List<CheckItem> items) {
		this.items = items;
	}
	
}
